import type { App } from "vue";
import { ControlType, registerControlProvider } from "@ibiz-template/runtime";
import IBizAppMenuControl from "./i-biz-app-menu-control.vue";
import { AppMenuProvider } from "./i-biz-app-menu-control.provider";

export const IBizAppMenu = {
  install(v: App) {
    v.component('IBizAppMenuControl', IBizAppMenuControl);
    registerControlProvider(ControlType.APP_MENU, () => new AppMenuProvider());
  },
}
